package com.example.demo.demos.repository;

import com.example.demo.demos.entity.SendMail;
import com.example.demo.demos.entity.UploadList;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface SendMailRepository extends JpaRepository<SendMail, Long> {

    Page<SendMail> findByMsgContainingOrderByIdDesc(String name, Pageable pageable);

    Page<SendMail> findBySendStatusEqualsOrderByIdDesc(Integer status, Pageable pageable);

}